package org.dreamwork.jasmine2.restful.client.gui;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2014/12/9
 * Time: 0:47
 */
public class TitledObject<T> {
    private T userObject;
    private String title;

    public TitledObject (String title, T object) {
        this.title = title;
        userObject = object;
    }

    public T getUserObject () {
        return userObject;
    }

    public String getTitle () {
        return title;
    }

    @Override
    public String toString () {
        return title;
    }
}
